<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>FUNC::is_hostname()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
a {	color: blue; text-decoration: none }
a:hover { text-decoration: underline }
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
<hr color="white">
FUNC :: <i>boolean</i> <b>is_hostname</b> ( <i>string</i> hostname [, <i>boolean</i> have_address ] )
<hr>
Return TRUE if is a public hostname format, FALSE if not.

<i>boolean</i> have_address default value is: false

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
// test if "domain.net" is hostname format and have IP address
echo FUNC::is_hostname('domain.net', true) ? 'true' : 'false';
</code></pre>
</td></tr>
</table>

<hr color="white">

See Also: <a href="is_ipv4.html">FUNC::is_ipv4()</a>

[ <a href="mail&#116;&#111;:contact&#064;xpertmailer.com?subject=Comment FUNC is_hostname">Comments</a> ]

Last update: Sunday, July 01, 2007

<hr>
</pre>

</body>
</html>